package com.example.yjhuser.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.yc.yjh.entity.Users;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Comment implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private int id;
    private int uid;
    private String content;
    private String createTime;
    private String type;
    private int topId;
    private int pid;
    @TableField(exist = false)
    private String pname;
    private int djId;
    private int time;
    @TableField(exist = false)
    private List<Comment> commentList;
    @TableField(exist = false)
    private String name;
//    @TableField(exist = false)
//    private String userId;
    @TableField(exist = false)
    private String image;
}
